package DINHVIETDUONG_Homeword;

import java.util.Scanner;

public class Models_2 {
	public void nhap2so(Entity_2 objEntity) {
		Scanner sc = new Scanner(System.in);
		System.out.println(" Mời chuyên gia nhập vào 2 số a,b:");
		objEntity.setA(sc.nextDouble());
		objEntity.setB(sc.nextDouble());
	}

	public double phepcong(Entity_2 objEntity) {
		double sum = objEntity.getA() + objEntity.getB();
		return sum;
	}

	public double pheptru(Entity_2 objEntity) {
		double hieu = objEntity.getA() - objEntity.getB();
		return hieu;
	}

	public double phepnhan(Entity_2 objEntity) {
		double tich = objEntity.getA() * objEntity.getB();
		return tich;
	}

public double phepchia(Entity_2 objEntity){
double tich = objEntity.getA()/objEntity.getB();
	return tich;
}
}

